[PATCH 1/2] modified message on failure to read metadata in Manage

From 347ed6b46a18374cc6743f2fdfccd136ea502331 Mon Sep 17 00:00:00 2001
From: Anna Czarnowska <anna.czarnowska [at] intel.com>
Date: Wed, 16 Feb 2011 13:10:29 +0100
Subject: [PATCH 1/2] modified message on failure to read metadata in Manage
Cc: linux-raid [at] vger.kernel.org, Williams, Dan J <dan.j.williams [at] intel.com>, Ciechanowski, Ed <ed.ciechanowski [at] intel.com>

Loading container may fail if e.g. one of the disks in container
has been detached but udev has not realized the change.
Addition to such array will fail because reading superblock
from one of disks in array fails.
Current message is a bit confusing.

Signed-off-by: Anna Czarnowska <anna.czarnowska [at] intel.com>
---
Manage.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Manage.c b/Manage.c
index 481c165..ea5d70f 100644
--- a/Manage.c
+++ b/Manage.c
[at] [at] -637,7 +637,7 [at] [at] int Manage_subdevs(char *devname, int fd,
/* FIXME this is a bad test to be using */
if (!tst->sb) {
close(tfd);
- fprintf(stderr, Name ": cannot find valid superblock in this array - HELP\n");
+ fprintf(stderr, Name ": cannot load array metadata from %s\n", devname);
return 1;
}

--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
anna.czarnowska [ Do, 17 Februar 2011 23:43 ] [ ID #2055397 ]

Re: [PATCH 1/2] modified message on failure to read metadata inManage

On Thu, 17 Feb 2011 22:43:19 +0000 "Czarnowska, Anna"
<anna.czarnowska [at] intel.com> wrote:

> >From 347ed6b46a18374cc6743f2fdfccd136ea502331 Mon Sep 17 00:00:00 2001
> From: Anna Czarnowska <anna.czarnowska [at] intel.com>
> Date: Wed, 16 Feb 2011 13:10:29 +0100
> Subject: [PATCH 1/2] modified message on failure to read metadata in Manage
> Cc: linux-raid [at] vger.kernel.org, Williams, Dan J <dan.j.williams [at] intel.com>, Ciechanowski, Ed <ed.ciechanowski [at] intel.com>
>
> Loading container may fail if e.g. one of the disks in container
> has been detached but udev has not realized the change.
> Addition to such array will fail because reading superblock
> from one of disks in array fails.
> Current message is a bit confusing.
>
> Signed-off-by: Anna Czarnowska <anna.czarnowska [at] intel.com>
> ---
> Manage.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Manage.c b/Manage.c
> index 481c165..ea5d70f 100644
> --- a/Manage.c
> +++ b/Manage.c
> [at] [at] -637,7 +637,7 [at] [at] int Manage_subdevs(char *devname, int fd,
> /* FIXME this is a bad test to be using */
> if (!tst->sb) {
> close(tfd);
> - fprintf(stderr, Name ": cannot find valid superblock in this array - HELP\n");
> + fprintf(stderr, Name ": cannot load array metadata from %s\n", devname);
> return 1;
> }
>


This and the next one both applied - thanks.

NeilBrown

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
NeilBrown [ Mo, 21 Februar 2011 06:46 ] [ ID #2055546 ]
Linux » gmane.linux.raid » [PATCH 1/2] modified message on failure to read metadata in Manage

Vorheriges Thema: New machine, new RAID, wrong device name...
Nächstes Thema: Re: Likely forced assemby with wrong disk during raid5 grow.Recoverable?